function Local(){
    var game;
    var gameBox = document.getElementById('game_box');
    var nextBox = document.getElementById('next_box');

    var start = function(){
        var doms = {
            gameBox,
            nextBox
        }
        game = new Game();
        game.initGame(doms);
        bindKeyEvent();
    }
    var bindKeyEvent = function(){
        document.onkeydown = function(e){
            if(e.keyCode === 38){ //up
                game.directionHandel('up');
            }else if(e.keyCode === 39){ //right
                game.directionHandel('right');
            }else if(e.keyCode === 40){ //down
                game.directionHandel('down');
            }else if(e.keyCode === 37){ //left
                game.directionHandel('left');
            }else if(e.keyCode === 32){ //空格
                game.directionHandel('space');
            }
        }
    }
    this.start = start;
}